var autoIncrement = require('mongoose-auto-increment')
var mongoose = require('mongoose');
var schema = mongoose.Schema;

var Session = function(){
    var sessionSchema = new schema({
        sid : { type: String, index: true },
        expires : { type: Date, default: Date.now, expires: 0 },
        data : { type: String, default: null }
    });


    return mongoose.model('Session',sessionSchema, 'Session');
};

module.exports = Session;
